package com.hs.srm.tools;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import com.hs.srm.common.utils.DateUtils;

import sunnykid.barcode.BarCodeException;
import sunnykid.barcode.BarCodeToolkit;
import sunnykid.character.UtilCharacter;
import sunnykid.file.FileException;
import sunnykid.file.FileOperator;
import sunnykid.util.CollectionUtils;

public class TestCase {
	
	/**
<div class='col-sm-12 select-info order-table'>
<div class='btn-group hidden-xs toolbar'>
<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-stack-exchange'></i> fa-stack-exchange
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-arrow-circle-o-right'></i> fa-arrow-circle-o-right
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-arrow-circle-o-left'></i> fa-arrow-circle-o-left
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-caret-square-o-left'></i> fa-caret-square-o-left
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-dot-circle-o'></i> fa-dot-circle-o
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-wheelchair'></i> fa-wheelchair
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-vimeo-square'></i> fa-vimeo-square
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-try'></i> fa-try
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-plus-square-o'></i> fa-plus-square-o
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-space-shuttle'></i> fa-space-shuttle
</a>

<a class='btn btn-outline btn-success btn-rounded'>
<i class='fa fa-slack'></i> fa-slack
</a>


</div>
</div>
	 * @throws ParseException 
	 */
	

	public static void main(String[] args) throws ParseException {
//		try {
//			List<String> list = FileOperator.readByLine("d:/bbb.txt");
//
//			int x = 0;
//			StringBuffer b = new StringBuffer();
//			StringBuffer nb = new StringBuffer();
//			
//			for(String s : list) {
//				x++;
//				
//				nb.append("<a class='btn btn-outline btn-success btn-rounded'>\n");
//				nb.append("<i class='fa "+s+"'></i> "+s+"\n");
//				nb.append("</a>\n");
//				
//				if(x % 10 == 0 || x >= list.size()) {
//					b.append("<div class='col-sm-12 select-info order-table'>\n");
//					b.append("<div class='col-sm-12 select-info order-table'>\n");
//					
//					b.append(nb + "\n");
//					
//					b.append("</div>\n");
//					b.append("</div>\n");
//					System.out.println(b);
//					b.setLength(0);
//					nb.setLength(0);
//				}
//			}
//		} catch(FileException ex) {
//			// TODO Auto-generated catch block
//			ex.printStackTrace();
//		}
		String str ="2018-11-08";
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		
		//Date  date = DateUtils.stringToDate1(str, DateUtils.DATE_PATTERN);	
		System.out.println("格式化后的日期"+df.parseObject(str));

	}

}
